package per.srp.demo.carLink.testP;

public class MakeCarRound {
    public static void main(String[] args) throws Exception {
        String car_json1 = "{\"code\":\"1232223289\",\"no\":\"testCar\",\"lon\":86.064513,\"lat\":44.307681,\"v\":0.0,\"b\":0}";
        String car_json2 = "{\"code\":\"1232223289\",\"no\":\"testCar\",\"lon\":86.064477,\"lat\":44.312015,\"v\":0.0,\"b\":0}";

        String car_json3 = "{\"code\":\"1232223289\",\"no\":\"testCar\",\"lon\":86.069795,\"lat\":44.312222,\"v\":0.0,\"b\":0}";
        String car_json4 = "{\"code\":\"1232223289\",\"no\":\"testCar\",\"lon\":86.069975,\"lat\":44.309358,\"v\":0.0,\"b\":0}";

        String[] jsons={
                car_json1,car_json2,car_json3,car_json4
        };

        for(int i=0;i<3;i++){
            System.out.println(i%4);
            Tool.sendOnce("127.0.0.1",9090,jsons[i%4]);
            Thread.sleep(2000);
        }
    }
}
